<template>
  <div class="input_comment" >
  <section class="comment_grp" v-for="v of article">
    <div @click="handleInput">请输入你的评论</div>
    <div class="iconfont_grp">
      <span class="iconfont icon-xiaoxi"></span>
      <div>{{v.comment}}</div>
    </div>
    <div class="iconfont_grp">
      <span class="iconfont icon-dianzan"></span>
      <div>{{v.post_like}}</div>
    </div>
    <div class="iconfont_grp">
      <span class="iconfont icon-shoucang"></span>
      <div>{{v.post_hits}}</div>
    </div>
    <div class="iconfont_grp">
      <span class="iconfont icon-shareicon2"></span>
      <div>{{v.share}}</div>
    </div>
  </section>
  </div>
</template>

<script>
  import {mapMutations } from 'vuex'
  export default {
    name: 'MenuBar',
    props:{
      article:Object
    },
    methods:{
      ...mapMutations(['changeIsInput']),
      handleInput(){
          this.changeIsInput(true)
      }
    }
  }
</script>

<style scoped>
  .input_comment {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: solid 1px #cecece;
    height: 96px;
    padding: 18px 0 18px 26px;
  }

  .comment_grp > div {
    float: left;
  }

  .comment_grp > div:nth-of-type(1) {
    width: 372px;
    height: 54px;
    border-radius: 27px;
    background-color: #f2f2f2;
    border: solid 1px #e7e5e5;
    line-height: 54px;
    padding: 0 26px;
    color: #c5c5c7;
    font-size: 24px;
  }
  .iconfont_grp{
    color: #666;
    margin: 0 23px;
  }

  .iconfont_grp div {
    font-size: 20px;
  }

  .iconfont {
    font-size: 34px;
  }

</style>
